package cn.yeziji.forum.dto.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 用户注册值对象
 *
 * @author gzkemays
 * @since 2022/4/18 15:26
 */
@Data
public class UserRegisterDTO {
  @NotBlank(message = "用户名不能为空")
  String username;

  @NotBlank(message = "密码不能为空")
  String password;

  @NotBlank(message = "请确认密码")
  String truthPassword;

  @NotBlank(message = "电子邮箱不能为空")
  String email;

  @NotBlank(message = "请输入邮箱验证码")
  String code;
}
